import java.util.Scanner;

public class J2410141 {
    public static void main(String[] args) {
        int count = 3;


        while( count != 0) {
            System.out.println("请输入你的密码：你还有" + count + "次机会");
            Scanner in = new Scanner(System.in);
            String  pass = in.nextLine();
            if (pass.equals("1026")){
                System.out.println("登陆成功！");
                break;
            } else  {
                count--;
                System.out.println("密码错误！");

            }
        }
    }
}
